Optimal. Leaf size=50 \[ -\frac {\sin ^5(a+b x)}{5 b}+\frac {\sin ^3(a+b x)}{b}-\frac {3 \sin (a+b x)}{b}-\frac {\csc (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2590, 270} \[ -\frac {\sin ^5(a+b x)}{5 b}+\frac {\sin ^3(a+b x)}{b}-\frac {3 \sin (a+b x)}{b}-\frac {\csc (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 2590
Rubi steps
\begin {align*} \int \cos ^5(a+b x) \cot ^2(a+b x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^3}{x^2} \, dx,x,-\sin (a+b x)\right )}{b}\\ &=-\frac {\operatorname {Subst}\left (\int \left (-3+\frac {1}{x^2}+3 x^2-x^4\right ) \, dx,x,-\sin (a+b x)\right )}{b}\\ &=-\frac {\csc (a+b x)}{b}-\frac {3 \sin (a+b x)}{b}+\frac {\sin ^3(a+b x)}{b}-\frac {\sin ^5(a+b x)}{5 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 50, normalized size = 1.00 \[ -\frac {\sin ^5(a+b x)}{5 b}+\frac {\sin ^3(a+b x)}{b}-\frac {3 \sin (a+b x)}{b}-\frac {\csc (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 43, normalized size = 0.86 \[ \frac {\cos \left (b x + a\right )^{6} + 2 \, \cos \left (b x + a\right )^{4} + 8 \, \cos \left (b x + a\right )^{2} - 16}{5 \, b \sin \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.26, size = 42, normalized size = 0.84 \[ -\frac {\sin \left (b x + a\right )^{5} - 5 \, \sin \left (b x + a\right )^{3} + \frac {5}{\sin \left (b x + a\right )} + 15 \, \sin \left (b x + a\right )}{5 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 62, normalized size = 1.24 \[ \frac {-\frac {\cos ^{8}\left (b x +a \right )}{\sin \left (b x +a \right )}-\left (\frac {16}{5}+\cos ^{6}\left (b x +a \right )+\frac {6 \left (\cos ^{4}\left (b x +a \right )\right )}{5}+\frac {8 \left (\cos ^{2}\left (b x +a \right )\right )}{5}\right ) \sin \left (b x +a \right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.38, size = 42, normalized size = 0.84 \[ -\frac {\sin \left (b x + a\right )^{5} - 5 \, \sin \left (b x + a\right )^{3} + \frac {5}{\sin \left (b x + a\right )} + 15 \, \sin \left (b x + a\right )}{5 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.48, size = 43, normalized size = 0.86 \[ -\frac {{\sin \left (a+b\,x\right )}^6-5\,{\sin \left (a+b\,x\right )}^4+15\,{\sin \left (a+b\,x\right )}^2+5}{5\,b\,\sin \left (a+b\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 8.67, size = 82, normalized size = 1.64 \[ \begin {cases} - \frac {16 \sin ^{5}{\left (a + b x \right )}}{5 b} - \frac {8 \sin ^{3}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{b} - \frac {6 \sin {\left (a + b x \right )} \cos ^{4}{\left (a + b x \right )}}{b} - \frac {\cos ^{6}{\left (a + b x \right )}}{b \sin {\left (a + b x \right )}} & \text {for}\: b \neq 0 \\\frac {x \cos ^{7}{\relax (a )}}{\sin ^{2}{\relax (a )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________